/*
 * @Author: Your name
 * @Date:   2021-03-12 11:06:53
 * @Last Modified by: mikey.yunsong
 * @Last Modified time: 2021-12-We 03:43:04
 */




//全局提示 背景色修改
.el-message {
  &.el-message--error {
    background: rgba(255, 102, 77, 0.85);
    border: none;
  }
  &.el-message--info {
    background-color: rgba(4, 48, 58, 0.85);
    border: none;
  }
  &.el-message--warning {
    background-color: rgba(219, 143, 33, 0.85);
    border: none;
  }
  &.el-message--success {
    background-color: rgba(50, 178, 83, 0.85);
    border: none;
  }
  .el-message__content {
    color: #fff !important;
  }
  .el-icon-close {
    color: #fff !important;
  }
}
// 按钮 样式  五种样式
.el-button {
  padding: 5px 15px;
  // $buttonColorHover: rgb(83, 202, 241);
  $buttonColorHover: #2C94FF;
  $buttonColorDisabled: rgb(217, 217, 217);
  $deleteColorBase: #f56c6c;
  $deleteColorHover: rgb(247, 155, 155);
  $deleteColorPressed: #f86767;
  $deleteColorDisabled: rgb(254, 240, 240);
  $buttonColorGreenHover: #6beeec;
  $buttonColorGreen: #28dad7;
  $buttonColorGrey: #ddd;
  border-radius: 2px;
  // 默认样式 取消重置按钮，常用大小small
  &.el-button {
    color: #262626;
    // background-color: rgba($color: $project_them, $alpha: 0.1);
    // border-color: #0ab2ea33;
    &:hover {
      // color: rgba($color: $project_them, $alpha: 0.6);
      background-color: $white;
      border-color: #DCDFE6;
    }
    &:active {
      color: $project_them;
    }
    &.is-disabled {
      color: $buttonColorDisabled;
      border: 1px solid $buttonColorDisabled;
      background-color: transparent;
      cursor: not-allowed;
      box-shadow: none;
    }
  }
  // 灰色按钮
  &.el-button--info {
    color: $buttonColorGrey;
    background-color: rgba($color: $buttonColorGrey, $alpha: 0.1);
    border-color: $buttonColorGrey;
    &:hover {
      color: #999;
      border-color: #999;
    }
    &:active {
      color: $buttonColorGrey;
    }
    &.is-disabled {
      color: $buttonColorDisabled;
      border: 1px solid $buttonColorDisabled;
      background-color: transparent;
      cursor: not-allowed;
      box-shadow: none;
    }
  }
  // 样式Base 表格内操作按钮用
  &.el-button--text {
    border: none;
    color: $link_C;
    background-color: transparent;
    padding: 0 8px 0 0;
    &:hover {
      color: $link_C;
    }
    &:active {
      color: $link_C;
    }
    &.is-disabled {
      background-color: transparent;
      color: $buttonColorDisabled;
      border-color: transparent;
      cursor: not-allowed;
    }
  }
  // 样式green 主要用于新增按钮
  &.el-button--success {
    background-color: $buttonColorGreen;
    color: #fff;
    border: 1px solid $buttonColorGreen;
    &:hover {
      color: #fff;
      background-color: $buttonColorGreenHover;
    }
    &:active {
      color: #fff;
      background-color: $buttonColorGreen;
    }
    &.is-disabled {
      color: $white;
      background-color: $buttonColorDisabled;
      cursor: not-allowed;
      border: 1px solid $buttonColorDisabled;
    }
  }

  // 样式delete 删除
  &.el-button--danger {
    color: $deleteColorBase;
    background-color: rgba($color: $deleteColorBase, $alpha: 0.1);
    border: 1px solid rgba($color: $deleteColorBase, $alpha: 0.3);
    &:hover {
      background-color: $deleteColorBase;
      color: rgba($color: #fff, $alpha: 0.9);
      border-color: rgba($color: $deleteColorBase, $alpha: 0.2);
    }
    &:active {
      color: #fff;
      background-color: $deleteColorBase;
      box-shadow: 0 0 3px $deleteColorBase;
    }
    &.is-disabled {
      color: $buttonColorDisabled;
      border: 1px solid $buttonColorDisabled;
      background-color: transparent;
      cursor: not-allowed;
      box-shadow: none;
    }
  }
  // 样式outline-blue 新建
  &.el-button--outline-blue {
    color: $project_them;
    background-color: transparent;
    border: 1px solid $project_them;
    &:hover {
      background-color: transparent;
      color: $buttonColorHover;
      border-color: $buttonColorHover;
    }
    &:active {
      color: $project_them;
      background-color: transparent;
      box-shadow: 0 0 3px $project_them;
    }
    &.is-disabled {
      color: $buttonColorDisabled;
      border: 1px solid $buttonColorDisabled;
      background-color: transparent;
      cursor: not-allowed;
      box-shadow: none;
    }
  }
  // 样式primary 编辑 保存
  &.el-button--primary {
    background-color: $project_them;
    color: #fff;
    border: 1px solid $project_them;
    &:hover {
      color: #fff;
      background-color: $buttonColorHover;
    }
    &:active {
      color: #fff;
      background-color: $project_them;
    }
    &.is-disabled {
      color: $white;
      background-color: $buttonColorDisabled;
      cursor: not-allowed;
      border: 1px solid $buttonColorDisabled;
    }
  }
  // 样式dark
  &.el-button--dark {
    background-color: transparent;
    color: $white;
    border: 1px solid $white;
    &:hover {
      color: rgba(255, 255, 255, 0.5);
      background-color: transparent;
    }
    &:active {
      background-color: transparent;
      box-shadow: 0 0 3px $white;
      color: $white;
    }
    &.is-disabled {
      color: $buttonColorDisabled;
      border: 1px solid $buttonColorDisabled;
      cursor: not-allowed;
    }
  }
}

// 表格样式
.el-table {
  thead {
    letter-spacing: 1.06px;
  }
  tr:hover {
    background-color: $tableHover_B;
  }
  .el-table__body {
    tr.current-row td {
      background-color: #e4eff7;
    }
  }

  th {
    padding: 15px 0;
    background-color: $project_them;
    color: #262626;
    &:nth-child(1) {
      .cell {
        padding-left: 20px !important;
        white-space: nowrap;
      }
    }
  }
  td {
    padding: 14px 0;
    color: $normal_C;
    &:nth-child(1) {
      .cell {
        padding-left: 20px !important;
        white-space: nowrap;
      }
    }
  }
  &::before {
    //height: 0;
  }

  &.el-table--striped {
    .el-table__body {
      tr.el-table__row--striped.current-row td {
        background-color: #e4eff7;
      }
    }
  }
}

// 分页样式
.el-pagination {
  $paginationPre: rgb(239, 243, 255);
  $btnTextColor: #acb6e6;
  color: $normal_C;
  letter-spacing: 1.06px;
  font-weight: normal;
  padding: 10px;
  margin: 10px 0px;
  text-align: right;
  justify-content: flex-end;
  .btnStyle {
    border-radius: 4px;
    min-width: 30px;
    line-height: 30px;
    height: 30px;
    &:disabled {
      background-color: $disable_B;
    }
    &:hover {
      background-color: $disable_B;
    }
  }
  .el-pagination__sizes{
    margin: 0px 10px;
    .el-input{
      width: 100px !important;
    }
  }
}


//Dropdown 下拉菜单
.el-dropdown-menu {
  padding: 6px;
  border: none;
  border-radius: $radius4;
  &.el-popper[x-placement^='bottom'] {
    margin-top: 0;
  }
  .el-dropdown-menu__item {
    padding: 0 8px !important;
  }
  > li {
    height: 36px;
    line-height: 36px;
    color: $normal_C !important;
    box-sizing: border-box;
    text-align: left;
    i {
      font-size: $normal_S;
      display: inline-block;
      width: 14px;
      color: $project_them;
    }

    &:hover {
      background: $tableHover_B !important;
      color: #63c5d6 !important;
    }
  }
}

//form
.el-form {
  .el-form-item {
    // background: #f7f7f7;
    .el-form-item__label {
      // text-align: left;
      padding-right: 16px;
    }
    .el-form-item__content {
      padding-left: 10px;
      // background: #fff;
      > .el-input,
      > .el-select {
        width: 100%;
        .el-input__inner {
          height: 36px;
          line-height: 36px;
        }
      }
      .avatar-uploader {
        padding-top: 10px;
      }
      .el-button--mini.is-round {
        margin: 6px 0 6px 15px;
        padding: 4px 12px;
      }
    }
    .el-form-item__error {
      padding-left: 10px;
    }
    .el-upload-form {
      margin-bottom: 10px;
      .el-form-item__label {
        color: $normal_C;
        height: 80px;
        line-height: 80px;
        vertical-align: middle;
      }
    }
  }
}

.avatar-uploader {
  .el-upload {
    width: 80px;
    height: 80px;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      display: inline-block;
      width: 80px;
      height: 80px;
      line-height: 80px;
      text-align: center;
      vertical-align: top;
    }
    img {
      width: 80px;
      height: 80px;
      vertical-align: middle;
    }
    .limitImg {
      width: 200px;
      position: absolute;
      left: 100px;
      top: 5px;
      font-size: $tab_S;
      line-height: 20px;
      text-align: left;
      color: $formLabel_C;
    }
    &:hover {
      border-color: #409eff;
    }
  }
}

//input样式
.el-input {
  height: 36px;
  line-height: 36px;
  .el-input__inner {
    height: 36px;
    line-height: 36px;
    color: $formLabel_C;
    font-size: $normal_S;
    &:focus {
      border-color: $project_them;
    }
  }
  // .el-input__inner::placeholder {
  //   color: $des_C;
  // }
  .el-input__icon {
    line-height: 36px;
    cursor: pointer;
  }
  &.is-disabled {
    .el-input__inner {
      height: 36px;
      line-height: 36px;
      box-sizing: border-box;
      background: $disable_B;
      font-size: $normal_S;
    }
    .el-input__icon {
      line-height: 36px;
    }
  }
  .el-input__prefix {
    color: $formLabel_C;
    left: 5px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
}

//文本框
.el-textarea {
  .el-textarea__inner {
    color: $normal_C;
    font-size: $normal_S;
    overflow: auto !important;
    &:focus {
      border-color: $project_them;
    }
  }
  .el-input__count {
    background: transparent;
  }
}

// el-select样式修改
.el-select {
  .el-input__suffix {
    height: 36px;
    line-height: 36px;
    right: 2px;
    .el-input__icon {
      color: $normal_C;
    }
  }
  .el-input__inner {
    &:focus {
      border-color: $project_them !important;
    }
  }
}
.el-select .el-input__suffix {
  right: 8px !important;
}
.el-select-dropdown {
  border: none;
  border-radius: 0;
  margin-top: 7px !important;
  .el-select-dropdown__wrap {
    .el-scrollbar__view {
      padding: 0 !important;
      > .el-select-dropdown__item {
        color: $normal_C;
        font-size: $normal_S;
      }
    }
  }
}
// 单选
.el-radio {
  color: $formLabel_C;
  .is-checked {
    .el-radio__inner {
      border-color: $project_them;
      background: $project_them;
      &:hover {
        border-color: $project_them !important;
      }
    }
    & + .el-radio__label {
      color: $project_them;
    }
  }
  .el-radio__inner {
    &:hover {
      border-color: $project_them !important;
    }
  }
}
// 多选
.el-checkbox {
  .is-indeterminate,
  .is-checked {
    .el-checkbox__inner {
      background-color: $project_them !important;
      border-color: rgb(120, 209, 231) !important;
    }
  }
  .el-checkbox__inner {
    &:hover {
      border-color: $project_them !important;
    }
  }
}

// 弹框
.el-dialog__wrapper {
  position: fixed;
  top: 0;
  height: 100vh;
  overflow: hidden;
  .el-dialog {
    margin-top: 0 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1000;
    transform: translate(-50%, -50%);
    // right: 0;
    // bottom: 0;
    // margin: auto !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 50%;
    min-height: 300px;
    max-height: 80%;
    .el-dialog__header {
      .el-dialog__title {
        font-size: $normal_S;
        color: $title_C;
        font-weight: 600;
      }
      // .el-dialog__headerbtn {
      //   &:hover {
      //     .el-dialog__close {
      //       // color: $project_them;
      //     }
      //   }
      // }
    }
    .el-dialog__body {
      flex: 1;
      padding: 0 10px 10px 10px;
      overflow: auto;
    }
    .el-dialog__footer {
      text-align: right;
      padding: 0 10px 10px 10px;
    }
  }
}
.el-dialog .el-dialog__header {
  padding: 0 20px;
  margin-right: 0;
  height: 48px;
  line-height: 48px;
  border-bottom: 1px solid #eee;
}
.el-dialog__headerbtn {
  top: 0 !important;
  &:hover {
    .el-dialog__close {
      color: #333 !important;
    }
  }
}
//el-tooltip
.el-tooltip__popper {
  max-width: 600px !important;
  font-size: $tab_S;
  line-height: 20px;
  &.is-light {
    border: none;
    box-shadow: 0px 0px 5px 1px rgb(209, 209, 209);
    .popper__arrow {
      // border-right-color: #eee  !important;
      // border-bottom-color: #eee  !important;
      border-top-color: rgb(218, 218, 218) !important;
      border-left-color: transparent !important;
    }
  }
  &.is-error {
    box-shadow: 0px 0px 5px 1px $tableHeader_B;
    background: rgba(255, 255, 255, 0.8);
    color: $des_C;
    .popper__arrow {
      background: transparent;
      border: none;
    }
  }
  &.is-error[x-placement^='top'] .popper__arrow::after {
    border-top-color: rgba(255, 255, 255, 0.4);
  }
  &.is-error[x-placement^='left'] .popper__arrow::after {
    border-left-color: rgba(255, 255, 255, 0.4);
  }
  &.is-error[x-placement^='bottom'] .popper__arrow::after {
    border-bottom-color: rgba(255, 255, 255, 0.4);
  }
  &.is-error[x-placement^='right'] .popper__arrow::after {
    border-right-color: rgba(255, 255, 255, 0.4);
  }
}
.audit-steps {
  .el-steps {
    $succColor: #4c8cff;
    $verticalColor: #cacfd9;
    .is-finish {
      color: $succColor;
      .el-step__line {
        background: $succColor !important;
      }
    }
    .el-step__icon-inner {
      font-size: 12px;
    }
    .is-process {
      color: $succColor;
      .el-step__icon-inner {
        color: #fff;
      }
      .el-step__icon.is-text {
        border-color: $succColor;
        background-color: $succColor;
      }
    }
    .is-vertical {
      .el-step__line {
        background: $verticalColor;
      }
    }
    .is-error {
      .el-step__icon {
        background: #f86767;
        border-radius: 50%;
        i {
          color: #fff;
        }
      }
    }
  }
}
// 面包屑
.el-breadcrumb__inner a,
.el-breadcrumb__inner.is-link {
  color: #277DBE !important;
}
.el-breadcrumb__item:last-child .el-breadcrumb__inner,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
  color: #676A6C !important;
}
// tabs
.el-tabs {
  margin: 0 32px;
  .el-tabs__item.is-active {
    color: $project_them;
  }
  .el-tabs__item {
    &:hover {
      color: $project_them;
    }
  }
}
.el-tabs__active-bar {
  background-color: $project_them;
}

.el-menu--horizontal>.el-menu-item {
  border: 0 !important;
}
.el-menu--horizontal{
  border: 0 !important;
}